home *** CD-ROM | disk | FTP | other *** search
/ Mesolore / Mesolore - Disc 2.iso / mac / data / Atlas.dir / 00017_Script_17 < prev    next >
Text File  |  2001-01-26  |  702b  |  29 lines

  1. on mouseDown
  2.   thloc=the loch of sprite 2
  3.   tvloc=the locv of sprite 2
  4.   phloc = the loch of sprite 1
  5.   mhloc = the mouseH
  6.   pvloc = the locv of sprite 1
  7.   mvloc = the mousev
  8.   repeat while the mousedown
  9.     mhdelta = the mouseh - mhloc
  10.     mvdelta = the mousev - mvloc
  11.     h=phloc + mhdelta
  12.     
  13.     
  14.     v=pvloc + mvdelta
  15.     if h < 411 then h = 411
  16.     if h > 412 then h = 412
  17.     if v < 189 then v = 189
  18.     if v > 312 then v = 312
  19.     set the loch of sprite 1 = h
  20.     set the locv of sprite 1 = v
  21.     deltah = h - phloc
  22.     deltav = v - pvloc
  23.     set the loch of sprite 2 = thloc + deltah
  24.     set the locv of sprite 2 = tvloc + deltav
  25.     updatestage
  26.   end repeat
  27. end
  28.  
  29.